package LekeW;

import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;

import com.jmoney.luckeylink.handler.LekeU_ApplyIC_Handler;
import com.jmoney.luckeylink.handler.LekeW_AuthorizeIC_Handler;

public class LekeW_AuthorizeIC {
     
    @BeforeTest
	private void Stup() throws Exception{
    	LekeW_AuthorizeIC_Handler.InitializeExcelData();
    	LekeU_ApplyIC_Handler.InitializeExcelData();
    }
    
    @Test
	public void Case1() throws Exception{
    	LekeU_ApplyIC_Handler.ApplyIC(1);
    	LekeW_AuthorizeIC_Handler.AuthorizeIC(1);	
	}

    @Test
	public void Case2() throws Exception{
    	LekeU_ApplyIC_Handler.ApplyIC(1);
    	LekeW_AuthorizeIC_Handler.AuthorizeIC(2);	
	}
    
    @Test
	public void Case3() throws Exception{
    	LekeW_AuthorizeIC_Handler.AuthorizeIC(3);	
	}
    
    @Test
	public void Case4() throws Exception{
    	LekeW_AuthorizeIC_Handler.AuthorizeIC(4);	
	}
    
	@AfterTest
	public void TearDown() throws Exception{
		LekeW_AuthorizeIC_Handler.GetCaseInfo(1);
		LekeW_AuthorizeIC_Handler.GetCaseInfo(2);
		LekeW_AuthorizeIC_Handler.GetCaseInfo(3);
		LekeW_AuthorizeIC_Handler.GetCaseInfo(4);
	}
}